var http = require('http');
var fs = require('fs');

var hostname='127.0.0.1';
var port ='3000';

var server =http.createServer(function(req,res){
    fs.readdir('./imgs',function(err,files){
        console.log(files);
        res.end();
    });
});


server.listen(port,hostname);